/*
 * 
 * 
 */

package DigimonAdventure.Things;

import DigimonAdventure.Database.DigimonSpecies;
import DigimonAdventure.Database.Strata;
import javax.swing.ImageIcon;

/**
 *
 * @author Kris Derril Siregar
 */
public abstract class AbstractDigimonSpecies extends AbstractThings{
    protected DigimonSpecies species;
    protected Strata strata;
	
	AbstractDigimonSpecies(int posX,int posY,DigimonSpecies species){
            super(posX,posY);
            this.species = species;
            strata = species.getStrata();
        }
        
	public DigimonSpecies getSpecies(){return species;}
    public Strata getStrata(){return strata;}

    @Override
    public ImageIcon getImageIcon() {
            icon = new ImageIcon(getClass().getResource(species.getImageLocation()));
        return this.icon;
    }

    
}
